package com.example.scenictourback.service;

import com.example.scenictourback.dto.OrderDTO;
import com.example.scenictourback.entity.Order;

import java.util.List;
import java.util.Map;

public interface OrderService {
    
    List<OrderDTO> listAllOrders(Integer type, Integer status);
    
    List<OrderDTO> listUserOrders(Integer userId, Integer type, Integer status);
    
    OrderDTO getOrderByOrderNo(String orderNo);
    
    OrderDTO getOrderById(Integer id);
    
    OrderDTO createOrder(Order order);
    
    OrderDTO updateOrderStatus(Integer id, Integer status);
    
    OrderDTO cancelOrder(Integer id);
    
    void deleteOrder(Integer id);
    
    Map<String, Object> getOrderStats();
} 